import { type ConfigTypes } from './types/index';

const config: ConfigTypes = {
  globalStyle: {
    navigationBarTextStyle: 'black',
    navigationBarBackgroundColor: '#fff',
    backgroundColor: '#fff',
    navigationStyle: 'custom',
  },
  tabBar: {
    custom: true,
    color: '#cccccc',
    selectedColor: '#FF9900',
    borderStyle: 'black',
    backgroundColor: '#ffffff',
    list: [
      {
        pagePath: 'pages/base/home/main',
        iconPath: 'static/tabbar/home.png',
        selectedIconPath: 'static/tabbar/home.png',
        text: 'tabbar_1',
      },
      {
        pagePath: 'pages/base/puppetTaabarPage_1/main',
        iconPath: 'static/tabbar/home.png',
        selectedIconPath: 'static/tabbar/home.png',
        text: 'tabbar_2',
      },
      {
        pagePath: 'pages/base/puppetTaabarPage_2/main',
        iconPath: 'static/tabbar/home.png',
        selectedIconPath: 'static/tabbar/home.png',
        text: 'tabbar_3',
      },
      {
        pagePath: 'pages/base/puppetTaabarPage_3/main',
        iconPath: 'static/tabbar/home.png',
        selectedIconPath: 'static/tabbar/home.png',
        text: 'tabbar_4',
      },
      {
        pagePath: 'pages/base/mine/main',
        iconPath: 'static/tabbar/home.png',
        selectedIconPath: 'static/tabbar/home.png',
        text: 'tabbar_5',
      },
    ],
  },
  easycom: {
    autoscan: true,
    custom: {},
  },
  preloadRule: {
    "pages/base/mine/main": {
      "packages": [
        "pages/TUIKit"
      ]
    }
  }
};

export default config;
